<?php
// $Id: xoops_version.php 136 2008-03-09 23:13:12Z mikhail.miguel $
$dirname = basename(dirname(__FILE__));
$modversion = array(
	// basic information
	'name' => _MI_XANHTE_NAME,
	'version' => 1.01,
	'description' => _MI_XANHTE_D,
	'author' => "",
	'credits' => "Xanhte Project",
	'help' => "help.html",
	'license' => "GPL see LICENSE",
	'image' => "images/xanhte.png",
	'dirname' => $dirname,
	'cube_style' => true,
	'xanhte_style' => true, // addition
	
	// SQL
	'sqlfile' => array(
		'mysql' => 'mysql.sql',
		),
	'tables'  => array(
		'{prefix}_{dirname}_picture',
		'{prefix}_{dirname}_openid_nonce',
		'{prefix}_{dirname}_openid_assoc',
		),
	
	// onInstall, onUpdate, onUninstall
	'legacy_installer' => array(
		'installer'   => array(
			'namespace' => 'Xanhte',
			'class'     => 'ModuleInstallerLegacy',
			'filepath'  => XOOPS_TRUST_PATH.'/xanhte/app/xc_class/Xanhte_ModuleInstallerLegacy.php',
			),
		'uninstaller' => array(
			'namespace' => 'Xanhte',
			'class'     => 'ModuleUninstallerLegacy',
			'filepath'  => XOOPS_TRUST_PATH.'/xanhte/app/xc_class/Xanhte_ModuleUninstallerLegacy.php',
			),
		'updater'     => array(
			'namespace' => 'Xanhte',
			'class'     => 'ModulePhasedUpgraderLegacy',
			'filepath'  => XOOPS_TRUST_PATH.'/xanhte/app/xc_class/Xanhte_ModulePhasedUpgraderLegacy.php',
			),
		),
	
	// Admin things
	'hasAdmin' => 1,
	'adminindex' => "admin/index.php",
	'adminmenu' => "admin/menu.php",
	
	// Templates
/*	'templates' => array(
		1 => array(
			'file' => 'news_index.ja.html',
			'description' => 'Articles List',
			),
		array(
			'file' => 'news_article.ja.html',
			'description' => 'Show an Article whole',
			),
		),
*/	
	//Preference
	'config' => array (
		array(
			"name" => "iprop_upload_path",
			"title" => "_MI_XACONF_IPROP_UPLOAD_PATH",
			"description" => "_MI_XACONF_UPLOAD_PATH_D",
			"formtype" => "textbox",
			"valuetype" => "text",
			"default" => '/uploads/xanhte_file_manager'
			),
		array(
			"name" => "iprop_max_file_size",
			"title" => "_MI_XACONF_IPROP_MAX_S",
			"description" => "_MI_XACONF_MAX_S_D",
			"formtype" => "textbox",
			"valuetype" => "int",
			"default" => 2000000
			),
		array(
			"name" => "iprop_max_file_width",
			"title" => "_MI_XACONF_IPROP_MAX_W",
			"description" => "_MI_XACONF_IPROP_MAX_W_D",
			"formtype" => "textbox",
			"valuetype" => "int",
			"default" => 640
			),
		array(
			"name" => "iprop_max_file_height",
			"title" => "_MI_XACONF_IPROP_MAX_H",
			"description" => "_MI_XACONF_IPROP_MAX_H_D",
			"formtype" => "textbox",
			"valuetype" => "int",
			"default" => 480
			),
		array(
			"name" => "iprop_fit_to_max",
			"title" => "_MI_XACONF_IPROP_FIT_TO_MAX",
			"description" => "_MI_XACONF_IPROP_FIT_TO_MAX_D",
			"formtype" => "yesno",
			"valuetype" => "int",
			"default" => 1
			),
		array(
			"name" => "iprop_resize_soft",
			"title" => "_MI_XACONF_IPROP_SOFT",
			"description" => "_MI_XACONF_IPROP_SOFT_D",
			"formtype" => "select",
			'options' => array('GD'=> 0, 'Imagemagick' => 1, 'NetBPM' => 2),
			"valuetype" => "int",
			"default" => 1,
			),
		array(
			"name" => "iprop_resize_soft_path",
			"title" => "_MI_XACONF_IPROP_SOFT_PATH",
			"description" => "_MI_XACONF_IPROP_SOFT_PATH_D",
			"formtype" => "textbox",
			"valuetype" => "text",
			"default" => '',
			),
		array(
			"name" => "iprop_resize_rule",
			"title" => "_MI_XACONF_IPROP_RESIZE_RULE",
			"description" => "_MI_XACONF_IPROP_RESIZE_RULE_D",
			"formtype" => "select",
			"valuetype" => "text",
			'options' => array(
				_MI_IPROP_RESIZE_RULE_W => 'w',
				_MI_IPROP_RESIZE_RULE_H => 'h',
				_MI_IPROP_RESIZE_RULE_B => 'b'
				),
			"default" => 'w',
			),
		array(
			"name" => "iprop_thumb_file_width",
			"title" => "_MI_XACONF_IPROP_THUMB_W",
			"description" => "_MI_XACONF_IPROP_THUMB_W_D",
			"formtype" => "textbox",
			"valuetype" => "int",
			"default" => 120
			),
		array(
			"name" => "iprop_thumb_file_height",
			"title" => "_MI_XACONF_IPROP_THUMB_H",
			"description" => "_MI_XACONF_IPROP_THUMB_H_D",
			"formtype" => "textbox",
			"valuetype" => "int",
			"default" => 80
			),
		array(
			"name" => "iprop_allow_image_ext",
			"title" => "_MI_XACONF_IPROP_OK_IMAGE_EXT",
			"description" => "",
			'formtype' => 'select_multi',
			'valuetype' => 'array',
			'options' => array_flip(array('gif','jpeg','jpg','png','GIF','JPEG','JPG','PNG')),
			"default" => range(0,7),
			),
		array(
			"name" => "iprop_allow_image_mime",
			"title" => "_MI_XACONF_IPROP_OK_IMAGE_MIME",
			"description" => "",
			'formtype' => 'select_multi',
			'valuetype' => 'array',
			'options' => array_flip(array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png')),
			"default" => range(0,7),
			),
		array(
			"name" => "iprop_allow_data_ext",
			"title" => "_MI_XACONF_IPROP_OK_DATA_EXT",
			"description" => "",
			'formtype' => 'select_multi',
			'valuetype' => 'array',
			'options' => array_flip(array('pdf', 'xls', 'doc', 'txt', 'ppt','PDF', 'XLS', 'DOC', 'TXT', 'PPT')),
			"default" => array(),
			),
		array(
			"name" => "iprop_allow_data_mime",
			"title" => "_MI_XACONF_IPROP_OK_DATA_MIME",
			"description" => "",
			'formtype' => 'select_multi',
			'valuetype' => 'array',
			'options' => array_flip(array('application/pdf','application/vnd.ms-excel','application/msword','text/plain','application/vnd.ms-powerpoint',)),
			"default" => array(),
			),
		),
	// Blocks
	/*
	'blocks' => array(
		1 => array(
			'file'		    => '' ,
			'show_func'		=> 'cl::' ,
			'class'         => 'Xanhte_BlockProcedureAdapter',
			'name'			=> 'openid_login' ,  // equals to ethna action not real file.
			'description'	=> 'Open id Login form' ,
			'edit_func'		=> 'b_openid_login_edit' , // Xanhte_BlockProcedureAdapter::b_xnews_edit();
			'options'		=> "" ,
			'template'		=> '' , //  use file template direct.
			'can_clone'		=> true ,
			),
		),
	*/
	// Search 
	'hasSearch' => 0,
	// Menu
	'hasMain' => 0,
	);
	
	